﻿using System;
using AppEszköz.UserManagement;

namespace AppEszköz.Audit
{
    public class AuditLogEntry
    {
        public User User { get; set; }

        public string AuditEvent { get; set; }

        public string Description { get; set; }

        public string Page { get; set; }

        public AuditLogEntry()
        {
            throw new NotImplementedException("Use ApplicationLogging class in place of this class");
        }

        public AuditLogEntry(string page, string auditEvent, string description, User user)
        {
            this.Page = page;
            this.AuditEvent = auditEvent;
            this.Description = description;
            this.User = user;
        }

        public void SaveEvent(string sqlConnectionString)
        {
            throw new NotImplementedException("This method needs to be updated to used stored procedures before it can be used in production");
        }
    }
}
